package com.fqy.gmall.cart.client;

import com.fqy.gmall.cart.client.impl.CartDegradeFeignClient;
import com.fqy.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "service-cart", fallback = CartDegradeFeignClient.class)
public interface CartFeignClient {

    //  添加商品到购物车
    @GetMapping("api/cart/addToCart/{skuId}/{skuNum}")
    Result addToCart(@PathVariable("skuId") Long skuId,@PathVariable("skuNum") Integer skuNum);
//    List<CartInfo> getCartCheckedList(@PathVariable("userId") String userId);

}
